﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using BaseData.Domain;

namespace SmartTracking.Domain.HQX
{
    /// <summary>
    /// 种母档案
    /// </summary>
    [Table("EweFile")]
    public class EweFile : BaseEntity
    {
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Key]
        /// <summary>
        /// 种母Id
        /// </summary>
        public int EweId { get; set; }
        /// <summary>
        /// 耳号
        /// </summary>
        public string EarSignal { get; set; } = string.Empty;
        /// <summary>
        /// 品种
        /// </summary>
        public int Variety { get; set; }
        /// <summary>
        /// 电子耳标号
        /// </summary>
        public string ElectronicEarTag { get; set; } = string.Empty;
        /// <summary>
        /// 基因等级
        /// </summary>
        public int GeneRank { get; set; }
        /// <summary>
        /// 父耳号
        /// </summary>
        public int FatherNumber { get; set; }
        /// <summary>
        /// 母耳号
        /// </summary>
        public int MotherNumber { get; set; }
        /// <summary>
        /// 出生日期
        /// </summary>
        public DateTime DateofBirth { get; set; }
        /// <summary>
        /// 入场日期
        /// </summary>
        public DateTime EntryDate { get; set; }
        /// <summary>
        /// 出生场地
        /// </summary>
        public int PlaceOfBirth { get; set; }
        /// <summary>
        /// 出生重量
        /// </summary>
        public int BirthWeight { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Note { get; set; } = string.Empty;
    }
}
